#-*- codeing = utf-8 -*-
#@Time : 2020/11/27 22:24
#@Author : 阳某
#@File : test1.py
#@Software : PyCharm

# 此方法只是一次性解决解决PySide2的This application failed to start because no Qt platform plugin could be initialized问题

# import sys, os
# import PySide2
# dirname = os.path.dirname(PySide2.__file__)
# plugin_path = os.path.join(dirname, 'plugins', 'platforms')
# os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path
# print(plugin_path)
from PySide2.QtWidgets import QApplication, QMainWindow, QPushButton,  QPlainTextEdit
app = QApplication([])
window = QMainWindow()
window.resize(500, 400)
window.move(300, 310)
window.setWindowTitle('薪资统计')

textEdit = QPlainTextEdit(window)
textEdit.setPlaceholderText("请输入薪资表")
textEdit.move(10,25)
textEdit.resize(300,350)

button = QPushButton('统计', window)
button.move(380,80)

window.show()

app.exec_()



